.nc-root {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.nc-header {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 22px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nc-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.nc-sidebar {
  width: 72px;
  background: #f8f8f8;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  justify-content: space-between;
}

.nc-sidebar-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.nc-tab {
  width: 100%;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  cursor: pointer;
  border-radius: 0 16px 16px 0;
  transition: background 0.2s, color 0.2s;
  color: #666;
  font-size: 13px;
  position: relative;
}

.nc-tab-icon {
  font-size: 26px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-tab-label {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.nc-tab.active {
  background: #fff;
  color: #ff9900;
  font-weight: 600;
}

/* .nc-tab.active .nc-tab-icon,
.nc-tab.active .nc-tab-label {
  color: #ff9900;
} */

.nc-sidebar-bottom {
  width: 100%;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nc-customer-icon {
  font-size: 28px;
  color: #666;
  margin-bottom: 2px;
}

.nc-customer-label {
  font-size: 14px;
  color: #444;
}

.nc-material-bar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.nc-material-bar-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
}

.nc-material-search {
  padding: 8px 12px 0 12px;
  background: #fff;
}

.nc-material-collapse {
  background: #fff;
  border: none;
  box-shadow: none;
}

.nc-material-collapse .ant-collapse-item {
  border: none;
}

.nc-material-collapse .ant-collapse-header {
  font-weight: 600;
  font-size: 16px;
  background: #fafbfc;
  border-radius: 6px 6px 0 0;
  padding-left: 12px !important;
}

.nc-material-collapse .ant-collapse-content {
  background: #fff;
  border-radius: 0 0 6px 6px;
}

.nc-material-collapse .ant-collapse-content-box {
  padding: 0 0 8px 0;
}

.nc-material-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 12px 8px 12px;
}

.nc-material-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.nc-material-item.selected {
  background: #ffe5cc;
}

.nc-material-item img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  margin-right: 8px;
  border-radius: 4px;
}

.nc-material-bar-toggle {
  width: 16px;
  background: #fff7e6;
  color: #ff6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-right: 1px solid #eee;
  writing-mode: vertical-lr;
  font-size: 14px;
}

.nc-canvas {
  flex: 1;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
}
/* nc-header-right */
.nc-canvas-inner {
  width: 900px;
  height: 500px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.2s, height 0.2s;
}

.nc-edit-panel {
  width: 260px;
  background: #fff;
  border-left: 1px solid #eee;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.nc-edit-panel-inner {
  padding: 0 16px 24px 16px;
  overflow-y: auto;
  height: 100%;
}

.nc-edit-title {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 0 12px 0;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 12px;
}

.nc-edit-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.nc-edit-label {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.nc-edit-link {
  font-size: 14px;
  color: #4096ff;
  padding: 0;
  height: auto;
}

.nc-edit-size-row {
  display: flex;
  align-items: center;
  margin: 8px 0 16px 0;
}

.nc-edit-size-input {
  background: #fafbfc;
  border-radius: 6px;
  border: 1px solid #eee;
  font-size: 15px;
}

.nc-edit-color-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.nc-edit-color-input {
  background: #fafbfc;
  border-radius: 6px;
  border: 1px solid #eee;
  font-size: 15px;
}

.nc-edit-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #eee;
  margin-left: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nc-edit-bg-btn {
  width: 100%;
  margin-bottom: 12px;
  background: #f5f5f5;
  color: #333;
  border-radius: 6px;
  border: 1px solid #eee;
}

.nc-edit-tip {
  font-size: 12px;
  color: #888;
  margin: 8px 0 16px 0;
  line-height: 1.6;
}

.nc-edit-qrcode-box {
  display: flex;
  align-items: center;
  background: #fff7e6;
  border-radius: 8px;
  padding: 10px 8px;
  margin-top: 12px;
}

.nc-edit-qrcode-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  margin-right: 10px;
}

.nc-edit-qrcode-desc {
  flex: 1;
  font-size: 13px;
  color: #333;
}

.nc-edit-qrcode-tip {
  color: #ff9900;
  font-size: 12px;
  margin-top: 2px;
}

/* 文字编辑区样式 */
.nc-edit-font-tip {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.nc-edit-font-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.nc-edit-font-btn {
  background: #fafbfc;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  padding: 0;
}

.nc-edit-font-btn:hover {
  background: #ff9900;
  color: #fff;
  border-color: #ff9900;
}

.nc-edit-font-effect {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  margin: 12px 0 8px 0;
}

.nc-edit-opacity-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.nc-edit-bottom-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.nc-edit-bottom-btn {
  background: #fafbfc;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  padding: 0;
}

.nc-edit-bottom-btn:hover {
  background: #ff9900;
  color: #fff;
  border-color: #ff9900;
}

.nc-header-bar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nc-header-left {
  display: flex;
  align-items: center;
}

.nc-title {
  font-size: 22px;
  font-weight: bold;
  color: #ff9900;
  letter-spacing: 1px;
}

.nc-header-center {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nc-header-menu {
  font-size: 16px;
  color: #333;
  margin: 0 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.nc-header-menu:hover {
  color: #ff9900;
}

.nc-header-icon {
  font-size: 20px;
  color: #333;
  margin: 0 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.nc-header-icon:hover {
  color: #ff9900;
}

.nc-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
 position: relative;
}

.nc-vip {
     width: 49px;
    height: 32px;
    overflow: hidden;
  display: flex;
  font-size: 16px;

}

.nc-bg{
        top: 0;
  width: 20px;
  height: 80px;
    transform: rotate(35deg);
background: url('../../../public/ani.png') 50% no-repeat;
position: absolute;
  animation: sweeps 1.2s linear infinite; /* 应用动画 */
}
@keyframes sweeps {
   0% {
    left: -30px;
  }
  100% {
    left: 110px; /* 假设根据实际情况调整的合适结束位置 */
  }
}
.nc-header-btn {
  font-size: 15px;
  border-radius: 6px;
  padding: 0 14px;
  height: 36px;
  margin-right: 0;
}

.nc-header-download {
  background: #ff9900 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,153,0,0.08);
}

.nc-header-download:hover {
  background: #ffae33 !important;
  color: #fff !important;
}

.nc-left-panel {
  width: 320px;
  background: #fff;
  border-right: 1px solid #eee;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,0.03);
  z-index: 2;
}

.nc-left-panel-arrow {
  position: absolute;
  right: -16px;
 top: 360px;
 width: 15px;
  height: 54px;
  background: #ff9900;
  color: #fff;
    border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 2px 0 8px rgba(255,153,0,0.08);
  z-index: 3;
  transition: background 0.2s;
}

.nc-left-panel-arrow:hover {
  background: #ffae33;
}
/* nc-tab-label */
.nc-left-panel-arrow-collapsed {
  position: absolute;
  top: 360px;
  left: 72px;
  width: 15px;
  height: 54px;
  background: #ff9900;
  color: #fff;
  border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 2px 0 8px rgba(10, 6, 2, 0.08);
  z-index: 3;
  transition: background 0.2s;
}
.nc-left-panel-arrow-collapsed-icon{
  width: 15px;
height: 15px;
}
.nc-left-panel-arrow-collapsed:hover {
  background: #ffae33;
}

/* 素材面板内容样式（示例） */
.nc-material-panel {
  padding: 12px 0 0 0;
  height: 100%;
  overflow-y: auto;
}

.nc-material-tabs {
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 8px;
}

.nc-mat-tab {
  font-size: 16px;
  color: #888;
  margin-right: 24px;
  cursor: pointer;
  padding-bottom: 2px;
  position: relative;
}

.nc-mat-tab.active {
  color: #ff9900;
  font-weight: 600;
  border-bottom: 3px solid #ff9900;
}

.nc-mat-filters {
  display: flex;
  gap: 12px;
  padding: 0 16px 8px 16px;
}

.nc-mat-filter-btn {
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  color: #fff;
}

.nc-mat-filter-btn-orange {
  background: #ff9900;
}
.nc-mat-filter-btn-blue {
  background: #4096ff;
}
.nc-mat-filter-btn-green {
  background: #13c2c2;
}

.nc-mat-section {
  margin-bottom: 12px;
  padding: 0 16px;
}

.nc-mat-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nc-mat-section-more {
  color: #888;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nc-mat-img-list {
  display: flex;
  gap: 12px;
}

.nc-mat-img-item {
  width: 90px;
  height: 110px;
  background: #fafbfc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nc-mat-img-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.nc-panel-placeholder {
  padding: 32px;
  color: #bbb;
  text-align: center;
  font-size: 18px;
}

.nc-canvas-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.nc-canvas-footer-btn {
  background: #fff7e6;
  color: #ff9900;
  border: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,153,0,0.08);
  padding: 0 32px;
  height: 40px;
  margin-right: 32px;
  pointer-events: auto;
  transition: background 0.2s, color 0.2s;
}

.nc-canvas-footer-btn:hover {
  background: #ff9900;
  color: #fff;
}

.nc-canvas-footer-zoom {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0 8px;
  margin-right: 32px;
  pointer-events: auto;
}

.nc-canvas-footer-zoom-btn {
  border: none;
  background: none;
  color: #888;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nc-canvas-footer-zoom-btn:disabled {
  color: #eee;
  cursor: not-allowed;
}

.nc-canvas-footer-zoom-btn:hover:not(:disabled) {
  background: #f5f5f5;
  color: #ff9900;
}

.nc-canvas-footer-zoom-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 8px;
  min-width: 48px;
  text-align: center;
}

.nc-canvas-footer-help {
  background: #fff;
  color: #ff9900;
  border: none;
  font-size: 20px;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(255,153,0,0.08);
  margin-left: 8px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.nc-canvas-footer-help:hover {
  background: #ff9900;
  color: #fff;
} 